﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.Query.PetaPoco;
using Happy.Navigation.Query.Menus;

namespace Happy.Navigation.Query.PetaPoco.Menus
{
    public sealed class MenuQuerySource : QuerySource<MenuView>, IMenuQuerySource
    {
        public MenuQuerySource()
            : base("NavigationUnitOfWork", "Menus")
        {
        }

        protected override string[] DefaultOrderClauses
        {
            get
            {
                return new string[] { "([Order])", "Title" };
            }
        }
    }
}
